API Documentation
Public Member Functions | List of all members
nkScripts::EnvironmentManager Class Referencefinal

Manages the environments available. More...

Inheritance diagram for nkScripts::EnvironmentManager:

Public Member Functions

EnvironmentcreateOrRetrieve (const char *name)
 

Detailed Description

Manages the environments available.

The manager always owns the memory allocated from calling it. External code should never free memory returned by it.

Member Function Documentation

◆ createOrRetrieve()

Environment* nkScripts::EnvironmentManager::createOrRetrieve ( const char *  name)

Creates if unavailable, or retrieves if available, the environment attached to a name.

Parameters
nameThe name of the environment the create or retrieve.
Returns
The newly created, or existing environment.
Remarks
The manager is responsible for the environment it returns. External code should not delete it.

The documentation for this class was generated from the following file: